<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Gremlins: Network::BehaviorHandler&lt; RequestMessage, ResponseMessage &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Gremlins
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_network.html">Network</a></li><li class="navelem"><a class="el" href="class_network_1_1_behavior_handler.html">BehaviorHandler</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Network::BehaviorHandler&lt; RequestMessage, ResponseMessage &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface for the client/server behavior implementation Messages model must be specified.  
 <a href="class_network_1_1_behavior_handler.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_behavior_handler_8h_source.html">BehaviorHandler.h</a>&gt;</code></p>

<p><a href="class_network_1_1_behavior_handler-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7806cf407f33816529275106eeb773d4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_behavior_handler.html#a7806cf407f33816529275106eeb773d4">HandleResponse</a> (ResponseMessage &amp;response, RequestMessage &amp;request, void *args)=0</td></tr>
<tr class="memdesc:a7806cf407f33816529275106eeb773d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a request message (boost::shared_pointer)  <a href="#a7806cf407f33816529275106eeb773d4"></a><br/></td></tr>
<tr class="memitem:a3e2a2de0ca3d5f4e9d5adb1d1ba8436e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e2a2de0ca3d5f4e9d5adb1d1ba8436e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_behavior_handler.html#a3e2a2de0ca3d5f4e9d5adb1d1ba8436e">HandleRequest</a> (ResponseMessage &amp;response, RequestMessage &amp;request, void *args)=0</td></tr>
<tr class="memdesc:a3e2a2de0ca3d5f4e9d5adb1d1ba8436e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Routine for incoming request message handling. <br/></td></tr>
<tr class="memitem:a139e76c0fdffecadf0a0edc782cbb7ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a139e76c0fdffecadf0a0edc782cbb7ea"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_behavior_handler.html#a139e76c0fdffecadf0a0edc782cbb7ea">SetKillSwitch</a> (bool isKill)=0</td></tr>
<tr class="memdesc:a139e76c0fdffecadf0a0edc782cbb7ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set/Unset the handler's mode (passive/active) <br/></td></tr>
<tr class="memitem:a88a428ba3782b7ba060f098e24652d45"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88a428ba3782b7ba060f098e24652d45"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_behavior_handler.html#a88a428ba3782b7ba060f098e24652d45">GetKillSwitch</a> ()=0</td></tr>
<tr class="memdesc:a88a428ba3782b7ba060f098e24652d45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the handler mode. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class RequestMessage, class ResponseMessage&gt;<br/>
class Network::BehaviorHandler&lt; RequestMessage, ResponseMessage &gt;</h3>

<p>Interface for the client/server behavior implementation Messages model must be specified. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7806cf407f33816529275106eeb773d4"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RequestMessage, class ResponseMessage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_network_1_1_behavior_handler.html">Network::BehaviorHandler</a>&lt; RequestMessage, ResponseMessage &gt;::HandleResponse </td>
          <td>(</td>
          <td class="paramtype">ResponseMessage &amp;&#160;</td>
          <td class="paramname"><em>response</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RequestMessage &amp;&#160;</td>
          <td class="paramname"><em>request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a request message (boost::shared_pointer) </p>
<p>Create a response message (boost::shared_pointer)</p>
<pre class="fragment">               Routine for incoming response message handling</pre> 
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gremlins_static/<a class="el" href="_behavior_handler_8h_source.html">BehaviorHandler.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jul 4 2012 10:52:48 for Gremlins by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
